package com.itheima.stock.mapper;

import com.itheima.stock.entity.StockMarketIndexInfo;
import com.itheima.stock.vo.OptionVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
* @author zby
* @description 针对表【stock_market_index_info(股票大盘数据详情表)】的数据库操作Mapper
* @created 2024-06-17 20:58:15
* 对应实体类{@link StockMarketIndexInfo}
*/
@Mapper
public interface StockMarketIndexInfoMapper {

    /**
     * 通过时间和编码ids查询大盘指数的详细信息
     * @param ids
     * @param last
     * @return
     */
    List<StockMarketIndexInfo> selectByIdsAndTime(@Param("ids") List<String> ids, @Param("last") LocalDateTime last);

    List<OptionVO> selectAmt(@Param("begin") LocalDateTime t1OpenDate, @Param("end")LocalDateTime tCloseDate, @Param("ids")List<String> ids);

    void insertBatch(@Param("stockMarketIndexInfos") List<StockMarketIndexInfo> stockMarketIndexInfos);
}




